# coding: utf-8
from application import db


class Safebox(db.Model):
    __tablename__ = 'safebox'

    id = db.Column(db.Integer, primary_key=True, info='ID')
    uid = db.Column(db.Integer, nullable=False, info='用户ID')
    num = db.Column(db.BigInteger, nullable=False, info='存入金额')
    created_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue(), info='创建时间')
    updated_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue(), info='更新时间')
    g_id = db.Column(db.Integer, nullable=False, info='道具ID')
    is_delete = db.Column(db.Integer, nullable=False, info='是否删除')
